﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Super.Entities;
using Super.Infrastructure;
using System.Web.Mvc;

namespace Super.DomainService
{
    public class ShopPageService
    {
        private readonly DbContextAdapter _adp;
        private readonly BaseService<ShopPage> _shopPageService;

        public ShopPageService(DbContextAdapter adapter)
        {
            _adp = adapter;
            _shopPageService = new BaseService<ShopPage>(_adp);
        }

        public void Delete(int id)
        {
            var shop = _shopPageService.Repository.First(a => a.ID == id);
            shop.IsDel = 1;
            _shopPageService.Repository.Update(shop);
        }
    }
}
